package com.coffee.order.api.sku.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.order.api.sku.query.SkuOrderDetailPeriodizationQuery;
import com.coffee.order.api.sku.result.SkuOrderDetailPeriodizationResult;


import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SkuOrderDetailPeriodizationService {

	Page<SkuOrderDetailPeriodizationResult> getPager(SkuOrderDetailPeriodizationQuery param, PagerInfo pr);
	
	Integer count(SkuOrderDetailPeriodizationQuery param);
	
	SkuOrderDetailPeriodizationResult getDetail(Integer id);
	
	List<SkuOrderDetailPeriodizationResult> getList(SkuOrderDetailPeriodizationQuery param, PagerInfo pr);
	
	List<SkuOrderDetailPeriodizationResult> getList(SkuOrderDetailPeriodizationQuery param);
	
	List<SkuOrderDetailPeriodizationResult> getList();

	void delete(Integer id);

	void addOrUpdate(SkuOrderDetailPeriodizationResult result)throws BusinessException;
	
	Map<Integer,SkuOrderDetailPeriodizationResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,SkuOrderDetailPeriodizationResult> getItemMap();
	
}